package com.aaa.ms.service.impl;

import com.aaa.common.entity.Order;
import com.aaa.ms.service.Orderservice;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @fileName:OrderServiceFallBack
 * @description:
 * @author:忆尘
 * @createTime:2020/11/5 16:14
 * @version:1.0.0
 */

//@Service
@Component
public class OrderServiceFallBack implements Orderservice {
    @Override
    public List<Order> listOrder() {
        List<Order> orders = new ArrayList<>();
        Order order =new Order();
        order.setId(4445);
        order.setMemberUsername("服务器出错，该下课了。。。");
        orders.add(order);
        return orders;
    }
}
